import java.util.ArrayList;

/**
 * @author v.zhang
 * @Description
 * @crate 2024/11/26
 */
public abstract class User {
    String name;
    ArrayList<User> meetingList;

    public User(String name) {
        this.name = name;
        this.meetingList = new ArrayList<>();
    }
    void registerMeeting(MeetingList meetingList) {
        meetingList.registerUser(this);
    }
    void unregisterMeeting(MeetingList meetingList) {
        meetingList.unregisterUser(this);
    }
    public abstract void notify(Meeting meeting);
}
